package cn.ck.service;

import cn.ck.pojo.SysUser;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface SysUserService {

    //登陆 依据account和password查询用户
    SysUser queryUser(String account,String password);
    //依据realName和roleId查询一页的记录
    List<SysUser> querySysUsers(String realName,Integer roleId,Integer pageNo,Integer pageSize);
    //依据realName和roleId查询 参与分页的记录数
    int queryCount(String realName,Integer roleId);

    int addUser(SysUser sysUser);

    //依据编号查询用户
    SysUser queryById(Integer id);
    //修改用户信息
    int updateUser(SysUser sysUser);
    //依据account查询用户是否存在
    int queryUserExist(String account);

    //依据id删除用户
    int deleteUser(Integer id, HttpServletRequest request);
}
